<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <!-- 标准的理想视口 -->
  <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
  <title>分类页面</title>
  <!-- 1 引入 4个 样式文件 -->
  <link rel="stylesheet" href="../lib/mui/css/mui.css">
  <link rel="stylesheet" href="../lib/fontawesome/css/font-awesome.css">
  <link rel="stylesheet" href="../css/common.css">
  <link rel="stylesheet" href="../css/category.css">
</head>

<body class="">
  <!-- 主要用在显示网页内容 -->
  <div class="pyg_view">
    <header class="pyg_header">
      <div class="mui-input-row mui-search">
        <input type="search" class="mui-input-clear" placeholder="">
      </div>
    </header>
    <!-- <span class="fa fa-spinner fa-spin"></span> -->
    <!-- 主要内容 -->
    <div class="pyg_main">
     
      <div class="left">
        <ul></ul>
      </div>
      <div class="right">
      

      </div>
    </div>

    <footer class="pyg_footer">
      <a href="javascript:;">
        <span class="fa fa-home"></span>
        <div>首页</div>
      </a>
      <a href="./pages/category.html">
        <span class="fa fa-list-ul"></span>
        <div>分类</div>
      </a>
      <a href="javascript:;">
        <span class="fa fa-shopping-cart"></span>
        <div>首页</div>
      </a>
      <a href="javascript:;">
        <span class="fa fa-user"></span>
        <div>首页</div>
      </a>
    </footer>
  </div>
</body>

<!-- 模板引擎 -->
<!-- 左侧菜单 -->
<script id="leftTpl" type="text/html">
  {{each data value1 index}}
  {{if index==0}}
  <li class="active">{{value1.cat_name}}</li>
  {{/if}}
  {{if index!=0}}
  <li >{{value1.cat_name}}</li>
  {{/if}}
  {{/each}}
</script>

<!-- 右侧内容 -->
<script id="rightTpl" type="text/html">
  <div>
  {{each data value1 index1}}
  <div class="goods_item">
      <div class="goods_title">{{value1.cat_name}}</div>
      <ul>
        {{each value1.children value2 index2 }}
        <li>
          <a href="goods_list.html?cid={{value2.cat_id}}">
            <img src="{{$imports.log}}{{value2.cat_icon}}" alt="">
            <div class="goods_name">{{value2.cat_name}}</div>
          </a>
        </li>
        {{/each}}
      </ul> 
    </div>
  {{/each}}
</div>
</script>

<!-- 模板引擎 -->


<!-- 2 引入js文件 -->
<script src="../lib/mui/js/mui.js"></script>
<script src="../lib/zepto/zepto.js"></script>
<script src="../lib/arttemplate/template-web.js"></script>
<script src="../lib/iscroll/iscroll.js"></script>
<script src="../js/common.js"></script>
<script src="../js/category.js"></script>

</html>